package com.fourhats.dao;

import java.util.List;

import com.fourhats.model.Market;

public interface MarketDAO extends GenericDAO<Market, Long> {
	
	public List<Market> getMarketsByKeyword(String keyword);
	
	public List<Market> getRandomlyHighlightMarkets(int maxResult);

	public List<Market> getAllMarkets();
	
	public Market getMarketByUser(long userId);
	
	public boolean hasMarket(long userId);

	public boolean existMarketWithName(String marketName, long userId);
}
